package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.ShopOrder;

import java.util.List;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：商品订单业务层接口
 *
 * @package: cn.wolfcode.trip.base.service
 * @author: Patch
 * @date: 2019/6/2 21:09
 * 总结:
 */
public interface IShopOrderService {
    /**
     * 新增和更新
     */
    void saveOrUpdate(ShopOrder shopOrder);
    /**
     * 查询所有
     *
     * @return
     */
    List<ShopOrder> listAll();

    /**
     * 查询单个
     *
     * @param id
     * @return
     */
    ShopOrder get(Long id);

    /**
     * 查询指定用户的订单
     * @param uId
     * @return
     */
    Object listAllByUid(Long uId);
}
